package com.jhh.pay.driver.pojo;

public enum State {
	
	SUCCESS("SUCCESS"), FAILED("FAILED");
	
	private final String value;
	
	State(String value) {
		this.value = value;
	}

	public static State getByString(String input) {
		for(State s : values()) {
			if(s.value.equals(input)) return s;
		}
		throw new IllegalArgumentException("wrong input : " + input);
	}
	
}
